CORE_PROJECTS := tinyxml libgraph libpland libpipc libkport2 pland
MAKE=make


all:
	@rm -rf build
	@mkdir build
	@$(foreach d, $(CORE_PROJECTS), \
		cd $(d); \
		$(MAKE) system  1>/dev/null; \
		cd .. ; \
		echo Compiled $(d) ;\
	)

launch: all
	cd build; ./pland;
clean:
	@rm  -rf build
	@$(foreach d, $(CORE_PROJECTS), \
		cd $(d) ; \
		$(MAKE) clean 1>/dev/null 2>/dev/null ;\
		cd .. ; \
	)
